package flash.net;

extern class FileReference extends flash.events.EventDispatcher
{
	function cancel():Void;
	function download(request:flash.net.URLRequest, defaultFileName:String = null):Void;
	function upload(request:flash.net.URLRequest, uploadDataFieldName:String = "Filedata", testUpload:Bool = false):Void;
	function load():Void;
	function save(data:Dynamic, defaultFileName:String = null):Void;
	function browse(typeFilter:Array<String> = null):Bool;
	function uploadUnencoded(request:flash.net.URLRequest):Void;
	var creationDate(default, null):Date;
	var modificationDate(default, null):Date;
	var name(default, null):String;
	var creator(default, null):String;
	var size(default, null):Float;
	var type(default, null):String;
	var extension(default, null):String;
	var data(default, null):flash.utils.ByteArray;
	function new():Void;
}